/**
 * cn.ucox.web.framework.rendors.pushmq.entity.Message
 *
 * @author chenw
 * @create 16/3/3.14:24
 * @email javacspring@hotmail.com
 */

package com.oceansoft.mobile.econsole.modules.jlapi.entity;


import java.util.Date;
import java.util.UUID;

/**
 * @author chenw
 * @create 16/3/3 14:24
 * @email javacspring@gmail.com
 */
public class ApiMessage {

    private String appId;
    private String msgId;
    private PushChannel channel;
    private Date sendTime;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public ApiMessage(PushChannel channel) {
        this.channel = channel;
        this.msgId = UUID.randomUUID().toString();
    }

    public ApiMessage(PushChannel channel, String msgId) {
        this.channel = channel;
        this.msgId = msgId;
    }

    public PushChannel getChannel() {
        return channel;
    }

//    public void setChannel(Channel channel) {
//        this.channel = channel;
//    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }
}
